﻿using AutoFacPack;
using Models;
using PublicType;
using RepositoryService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class ClassStringService:IService
    {
        public ClassStringService() 
        {
        
        }
        private DbContext DbContext { get; set; }

        public Dictionary<String, String> ToClassStringList()
        {
            return this.DbContext.ToClassStringList();
        }
        public ReturnData<List<DbElementEntity>> GetTableInfoList()
        {
            return this.DbContext.GetTableInfoList();
        }
        public ReturnData<List<DbTableFieldEntity>> GetColumnInfosByTableName(String tableName)
        {
            return this.DbContext.GetColumnInfosByTableName(tableName);
        }
        public String[] getSqlSugarDbType()
        {
            return this.DbContext.getSqlSugarDbType();
        }
    }
}
